package com.pai4j.domain.vo.response;

import lombok.Data;

/**
 *
 *
 * @author: CYM-pai
 * @date: 2025/10/28 20:37
 **/
@Data
public class ResourceBaseInfoVO {

    private Long resourceId;

    private String author;

    private String content;

    private String firstImage;

    private String detailUrl;


    public static ResourceBaseInfoVO of(Long resourceId, String author, String content, String detailUrl) {
        ResourceBaseInfoVO resourceBaseInfo = new ResourceBaseInfoVO();
        resourceBaseInfo.setResourceId(resourceId);
        resourceBaseInfo.setAuthor(author);
        resourceBaseInfo.setContent(content);
        resourceBaseInfo.setDetailUrl(detailUrl);
        return resourceBaseInfo;
    }
}
